/**
 * Created by admin on 2017/9/12.
 */

layui.define(['ajax'], function (exports) {
    var $ajax = layui.ajax;
    var major = {
        findMajorList: function(obj, callback) {
            $ajax.getJSON({
                url: "/major/findMajorList.html",
                data: obj,
                success: callback
            })
        },
        saveMajor: function(obj, callback) {
            $ajax.getJSON({
                url: "/major/saveMajor.html",
                data: obj,
                success: callback
            })
        },
        deleteMajorById: function(obj, callback) {
            $ajax.getJSON({
                url: "/major/deleteMajorById.html",
                data: obj,
                success: callback
            })
        },
        findMajorById: function(obj, callback) {
            $ajax.getJSON({
                url: "/major/findMajorById.html",
                data: obj,
                success: callback
            })
        },
        updateMajor: function(obj, callback) {
            $ajax.getJSON({
                url: "/major/updateMajor.html",
                data: obj,
                success: callback
            })
        }
    };
    exports('major', major);
})